<?php
require_once ('../libs/Smarty.class.php');

$smarty = new Smarty ();

//$smarty->force_compile = true;
$smarty->debugging = true;
$smarty->caching = false;
//$smarty->cache_lifetime = 120;
require_once '../util/auth.php';
if (isLoggedIn ()) {
	$smarty->assign ( 'username', $_SESSION ["username"] );
	$smarty->assign ( 'session_debug', $_SESSION );
	//	$smarty->assign("arrLocation", array());
	$smarty->display ( '../cpanel/index.tpl' );
} else {
	header ( 'Location: /cpanel/login.php' );
}